std::cos

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       cos( float arg );

double      cos( double arg );

long double cos( long double arg );

Computes cosine of arg

Parameters

arg - floating point value representing angle in radians

Return value

cosine of arg in the range [-1.0 ; 1.0].

Domain error occurs if arg is infinite. ​NAN​ is returned in that case.

See also

sin
sine
(function)
tan
tangent
(function)
acos
arc cosine
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages